﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase, Microsoft.SharePoint"%>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.Utilities" %>
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"><asp:Literal ID="litPageTitle" runat="server" /></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server"><asp:Literal ID="litPageTitle2" runat="server" /></asp:Content>
<asp:Content id="Breadcrumb" contentplaceholderid="PlaceHolderTitleBreadcrumb" runat="server">
<asp:HyperLink ID="hlSite" runat="server" /> &gt; <asp:HyperLink ID="hlSiteSettings" runat="server" Text="<%$Resources:wss,settings_pagetitle %>" /> &gt; <asp:Label CssClass="ms-sitemapdirectional" ID="lbCurrentPage" runat="server" />
</asp:Content>
<asp:Content ID="PageDescription" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
<asp:HyperLink ID="hlBackToLibrary" runat="server" /> | <asp:HyperLink ID="hlBackToReportAdmin" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
<SharePoint:DelegateControl id="dcDisplayReport" ControlId="SoVSPReportingDisplayReport" runat="server"  />
</asp:Content>
<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        hlSite.Text = SPContext.Current.Web.Title;
        hlSite.NavigateUrl = SPContext.Current.Web.Url;
        hlSite.NavigateUrl = SPContext.Current.Web.Url;
        hlSiteSettings.NavigateUrl = SPUrlUtility.CombineUrl(SPContext.Current.Web.Url, "/_layouts/settings.aspx");
        string pageTitle = string.Format("{0} - {1}", SPUtility.GetLocalizedString("$Resources:SoVSPReporting_SoVGroup;", "SoVSPReporting", SPContext.Current.Web.Language), SPUtility.GetLocalizedString("$Resources:SoVSPReporting_ReportingLink;", "SoVSPReporting", SPContext.Current.Web.Language));

        lbCurrentPage.Text = litPageTitle.Text = litPageTitle2.Text = pageTitle;

        SPFeature reportingFeature = SPContext.Current.Web.Features[new Guid("{EE20FDFF-1D4B-4586-99B6-19A078AC74BC}")];
        if (reportingFeature != null)
        {
            hlBackToLibrary.Text = SPUtility.GetLocalizedString("$Resources:SoVSPReportingWeb_GoToReportModelsDocLib;", "SoVSPReporting", SPContext.Current.Web.Language);
            hlBackToLibrary.NavigateUrl = SPContext.Current.Web.GetListFromUrl(SPUrlUtility.CombineUrl(SPContext.Current.Web.ServerRelativeUrl, SPUtility.GetLocalizedString("$Resources:SoVSPReportingLists_ReportingModelsList_Url;", "SoVSPReporting", SPContext.Current.Web.Language) + "/Forms/AllItems.aspx")).DefaultViewUrl;
            hlBackToReportAdmin.Text = SPUtility.GetLocalizedString("$Resources:SoVSPReportingWeb_GoToReportsCenter;", "SoVSPReporting", SPContext.Current.Web.Language);
            hlBackToReportAdmin.NavigateUrl = SPUrlUtility.CombineUrl(SPContext.Current.Web.ServerRelativeUrl, SPUtility.GetLocalizedString("$Resources:SoVSPReportingWeb_ReportsCenterPageUrl;", "SoVSPReporting", SPContext.Current.Web.Language));
        }
        base.OnLoad(e);
    }
</script>